var express = require('express');
var proxyMiddleWare = require("http-proxy-middleware");
var proxyPath = "http://192.168.118.17:80";//目标后端服务地址
var proxyOption ={target:proxyPath,changeOrigoin:false}
var app = express();
    app.use(express.static("./public"))
    app.use("/",proxyMiddleWare(proxyOption))
    app.listen(8080);
	
//npm install express http-proxy-middleware --save-dev